home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2004 #9 / Amiga Plus CD - 2004 - No. 09.iso / amigaplus / tools / amigaos4_only / smbfs / source / gnumakefile.os4 < prev    next >
Encoding:
Text File  |  2004-08-03  |  2.4 KB  |  74 lines

  1. #
  2. # $Id: GNUmakefile.os4,v 1.2 2004/05/13 13:18:10 obarthel Exp $
  3. #
  4. # :ts=8
  5. #
  6. # SMB file system wrapper for AmigaOS, using the AmiTCP V3 API
  7. #
  8. # Copyright (C) 2000-2004 by Olaf `Olsen' Barthel <olsen@sourcery.han.de>
  9. #
  10. # This program is free software; you can redistribute it and/or modify
  11. # it under the terms of the GNU General Public License as published by
  12. # the Free Software Foundation; either version 2 of the License, or
  13. # (at your option) any later version.
  14. #
  15. # This program is distributed in the hope that it will be useful,
  16. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  18. # GNU General Public License for more details.
  19. #
  20. # You should have received a copy of the GNU General Public License
  21. # along with this program; if not, write to the Free Software
  22. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  23. #
  24.  
  25. .c.o:
  26.     @echo "Compiling $<"
  27.     @$(CC) -c $(CFLAGS) -o $*.o $<
  28.  
  29. ###########################################################################
  30.  
  31. PROJECT = smbfs
  32.  
  33. ###########################################################################
  34.  
  35. CC = ppc-amigaos-gcc
  36.  
  37. ###########################################################################
  38.  
  39. #WARNINGS = \
  40. #    -Wall -W -Wshadow -Wpointer-arith -Wsign-compare -Wmissing-prototypes \
  41. #    -Wundef -Wbad-function-cast -Wmissing-declarations -Wconversion
  42.  
  43. WARNINGS = \
  44.     -Wall -W -Wshadow -Wpointer-arith -Wsign-compare -Wmissing-prototypes \
  45.     -Wundef -Wbad-function-cast -Wmissing-declarations
  46.  
  47. CPU = -mcpu=604e -msoft-float
  48. OPTIONS = -DNDEBUG -fno-builtin
  49. OPTIMIZE = -O2 -fomit-frame-pointer -fstrength-reduce -finline-functions
  50. DEBUG = -g
  51.  
  52. ###########################################################################
  53.  
  54. CFLAGS = $(WARNINGS) $(OPTIMIZE) $(DEBUG) $(CPU) $(OPTIONS) \
  55.          -I. -I/gcc/ppc-amigaos/include -I/gcc/ppc-amigaos/include/sys -Iinclude -I/SDK/Include/netinclude
  56. LFLAGS = -nostartfiles -nostdlib -L.
  57.  
  58. ###########################################################################
  59.  
  60. OBJS = main.o proc.o smb_abstraction.o sock.o crypt.o
  61.  
  62. ###########################################################################
  63.  
  64. LIBS = -lc
  65.  
  66. ###########################################################################
  67.  
  68. all: $(PROJECT)
  69.  
  70. $(PROJECT): $(OBJS)
  71.     @echo "Linking $@"
  72.     @$(CC) -o $@.debug $(CFLAGS) $(LFLAGS) $(OBJS) $(LIBS) -Wl,--cref,-M,-Map=$@.map
  73.     ppc-amigaos-strip -R.comment -o $@ $@.debug
  74.